<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	global $page, $paged;
	wp_title( '|', true, 'right' );
	bloginfo( 'name' );
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'TT' ), max( $paged, $page ) );
	?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );
	wp_head();
?>
<script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=c9cf4f7f-936d-4bff-8063-3c01d20669ef&amp;type=website&amp;post_services=email%2Cfacebook%2Ctwitter%2Cgbuzz%2Cmyspace%2Cdigg%2Csms%2Cwindows_live%2Cdelicious%2Cstumbleupon%2Creddit%2Cgoogle_bmarks%2Clinkedin%2Cbebo%2Cybuzz%2Cblogger%2Cyahoo_bmarks%2Cmixx%2Ctechnorati%2Cfriendfeed%2Cpropeller%2Cwordpress%2Cnewsvine&amp;button=false"></script>
<?php wp_enqueue_script("jquery"); ?>
<link href="<?php bloginfo( 'template_url' ); ?>/css/select2.css" rel="stylesheet"/>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/js/select2.js"></script>
<script>
	$(document).ready(function() { 
		$("#e1").select2({
 			placeholder: "Select a Song"
		}); 
	});
</script>
<?php if ( is_single()) { ?>
<link href="http://jplayer.org/latest/skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" />        
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jPlayer/jquery.jplayer.min.js"></script>
<script>
$(document).ready(function() {
    $("#jquery_jplayer_1").jPlayer({
        ready: function(event) {
            $(this).jPlayer("setMedia", {
                mp3: "<?php echo get_field('song'); ?>"
            });
        },
        swfPath: "<?php bloginfo('template_url'); ?>/jPlayer",
        supplied: "mp3"
    });
});      
</script>
<?php } ?>      
</head>
<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed">
	<div id="header">

				<div id="header-ads">
					<script type="text/javascript"><!--
					google_ad_client = "ca-pub-7168491151155439";
					/* TV Tunes - Bottom Leaderboard */
					google_ad_slot = "8182441688";
					google_ad_width = 728;
					google_ad_height = 90;
					//-->
					</script>
					<script type="text/javascript"
					src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					</script>
				</div>
				
				<div id="search">
					<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    				<div>
    					<label>Search TelevisionTunes.com:</label><br>
        			<input type="text" value="" name="s" id="s" />
        			<input type="submit" id="searchsubmit" value="Search" />
    				</div>
					</form>
				</div>
				<div class="clear"></div>
				<div id="social"> 
					<a href="http://www.facebook.com/pages/TelevisionTunescom/178261387583"><img src="<?php bloginfo( 'template_url' ); ?>/images/facebook.png" /></a>
					<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/TelevisionTunescom/178261387583&amp;layout=button_count&amp;show_faces=true&amp;width=80&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true"></iframe> 
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> 
					<g:plusone></g:plusone> 
					<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
				</div>

				<div id="access" role="navigation">
					<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
				</div><!-- #access -->

	</div><!-- #header -->
	<div id="main">